package com.mzj.saas.mservice.bill.repository;

import com.mzj.saas.mservice.bill.entity.HouseExpenseGas;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.transaction.annotation.Transactional;

public interface HouseExpenseGasRepository extends JpaRepository<HouseExpenseGas,Long>,JpaSpecificationExecutor<HouseExpenseGas> {

    HouseExpenseGas findByRuleId(String ruleId);

    @Transactional
    void deleteByRuleId(String ruleId);

}
